<?php

namespace App\Http\Controllers\admin\validate;

use Illuminate\Support\Facades\Validator;

class Common
{


    public static function getByUid($param){
        $rules = [
            'userId'=>'required|numeric',
        ];
        $msg = [
            'userId.required'=>'用户编号为空',
            'userId.numeric'=>'用户编号格式不对',

        ];
        return Validator::make($param,$rules,$msg)->errors()->all();
    }


}